package top.go2do.deviceSync.business.operationLog.service;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.go2do.common.module.OperationLogBO;
import top.go2do.deviceSync.business.operationLog.dao.OperationLogRepository;
import top.go2do.deviceSync.business.operationLog.module.OperationLogPO;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/5/12 11:46
 */
@Service
public class OperationLogServiceImpl implements OperationLogService{

    @Autowired
    private OperationLogRepository operationLogRepository;

    @Override
    public void createLog(OperationLogBO logBO) {
        OperationLogPO logPO = new OperationLogPO();
        BeanUtils.copyProperties(logBO, logPO);
        operationLogRepository.save(logPO);
    }
}
